package utils;

/**
 * Created by Administrator on 15-10-22.
 */

import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;

/**
 * 用于进行尺寸计算
 */
public final  class DimensionUtils {
    public DimensionUtils() {
    }
    public static int dp2px(Context context,int dp){
        int ret=0;
        Resources resources=context.getResources();
        DisplayMetrics dpi=resources.getDisplayMetrics();

      //  ret=dp*(dpi/160);
        return ret;
    }
}
